#include<stdio.h>
#include<stdlib.h>
#include "sqqueue.h"
#include<string.h>

int main(){
	sequeue * sq = queue_create();
	if(sq == NULL){
		return -1;
	}

	enqueue(sq, 10);
	enqueue(sq, 20);
	enqueue(sq, 30);
	enqueue(sq, 40);
	enqueue(sq, 50);

	while(!queue_empty(sq)){
		printf("%d ", dequeue(sq));
	}

	queue_clear(sq);
	sq = queue_free(sq);
	queue_free(sq);
	return 0;
}

